<?php

class Kefu extends Zend_Db_Table{
  protected $_name = 'kefu';
  protected $_primary = 'id';

  public function getKefu(){
      if(($webconf = $this->fetchRow('id=1'))!=null){
          return $webconf->toArray();
      }
      return null;
  }

  public function updateKefu($set){
      $db = $this->getAdapter();
      $where = $db->quoteInto('id = ?', 1);
      return $this->update($set, $where);
  }
}
